|
Menyplacering |
---|
Draft -> Trim/Extend |
Arbetsbänkar |
Draft, Arch |
Standard genväg |
T R |
Introducerad i version |
- |
Se även |
Part Extrude |
Detta verktyg trimmar/klipper och förlänger linjer och polylines.
Top: a Draft Wire extended and then trimmed.
Bottom: a face extruded into a solid body.
false
.The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts.
Here is an example to explain the modifier keys. The left edge or the bottom edge of the U-shaped wire was extended. All Draft Snaps were turned off.
See also: Draft Snap and Draft Constrain.
The modifier key mentioned here can be changed. See Draft Preferences.
There is no Python method to trim objects. To extrude objects use the extrude
method of the Draft module.
extrusion = extrude(obj, vector, solid=False)
obj
is the object to be extruded.vector
is the extrusion direction and distance.solid
is True
a solid is created instead of a shell.extrusion
is returned with the created object.Example:
import FreeCAD as App
import Draft
doc = App.newDocument()
rectangle = Draft.make_rectangle(1500, 500)
doc.recompute()
vector = App.Vector(0, 0, 300)
solid = Draft.extrude(rectangle, vector, solid=True)
doc.recompute()